package Zuo4Ye2;

public class SalesEmployee extends ColaEmployee {
	private int sales;
	private double rate;
	public SalesEmployee() {
		super();
	}
	public SalesEmployee(String name, int month,int sales,double rate) {
		super(name, month);
		this.sales = sales;
		this.rate = rate;
	}
	public int getSales() {
		return sales;
	}
	public void setSales(int sales) {
		this.sales = sales;
	}
	public double getRate() {
		return rate;
	}
	public void setRate(double rate) {
		this.rate = rate;
	}
	
	@Override
	public double getSalary(int month) {
		return rate*sales+super.getSalary(month);
	}
	
}
